/* jsx ctrl+m*/
import React, { Component } from 'react';
import './css/index.css'
import Header from './components/Header'
import Bottom from './components/Bottom'
class App extends Component {
  constructor(props){
    /* 组件的构造函数中一定要加上super */
    super(props);
    this.state = {
      msg:"hello react",
      header:"react-header"
    }
  }
  render() {
    return (
      <div className="test">
        <Header data={this.state.header}></Header>
        <Bottom myRun={this.run}></Bottom>
        {this.state.msg}
        <image source={{uri: 'https://imgcache.qq.com/open_proj/proj_qcloud_v2/gateway/portal/css/img/nav/logo-bg-color.svg'}} />
      </div>
    );
  }
  run(params){
    console.log(params);
  }
}
export default App;


